.class public Lcom/estrongs/android/taskmanager/tools/a;
.super Ljava/lang/Object;


# direct methods
.method private static a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4

    new-instance v0, Lcom/estrongs/android/taskmanager/tools/b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/taskmanager/tools/b;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0, p1}, Lcom/estrongs/android/taskmanager/tools/b;->a(Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    if-eqz v1, :cond_0

    const/4 v2, 0x1

    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v3

    if-gt v2, v3, :cond_0

    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    const-string v2, "VALUE"

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v2

    invoke-interface {v1, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object p2

    :goto_0
    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/tools/b;->close()V

    return-object p2

    :cond_0
    invoke-virtual {v0, p1, p2}, Lcom/estrongs/android/taskmanager/tools/b;->a(Ljava/lang/String;Ljava/lang/String;)J

    goto :goto_0
.end method

.method public static a(Landroid/content/Context;Z)V
    .locals 3

    new-instance v1, Lcom/estrongs/android/taskmanager/tools/b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/taskmanager/tools/b;-><init>(Landroid/content/Context;)V

    const-string v2, "AUTO_AIRPLANE_MODE"

    if-eqz p1, :cond_0

    const-string v0, "1"

    :goto_0
    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/taskmanager/tools/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/tools/b;->close()V

    return-void

    :cond_0
    const-string v0, "0"

    goto :goto_0
.end method

.method public static a(Landroid/content/Context;[I)V
    .locals 5

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    array-length v2, p1

    const/4 v0, 0x0

    :goto_0
    add-int/lit8 v3, v2, -0x1

    if-lt v0, v3, :cond_0

    add-int/lit8 v0, v2, -0x1

    aget v0, p1, v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v0, "ssssss"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "qqqqqqqq save==="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    new-instance v0, Lcom/estrongs/android/taskmanager/tools/b;

    invoke-direct {v0, p0}, Lcom/estrongs/android/taskmanager/tools/b;-><init>(Landroid/content/Context;)V

    const-string v2, "HOME_MENU_ORDER"

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Lcom/estrongs/android/taskmanager/tools/b;->b(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/estrongs/android/taskmanager/tools/b;->close()V

    return-void

    :cond_0
    aget v3, p1, v0

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ","

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method public static a(Landroid/content/Context;)Z
    .locals 2

    const-string v0, "AUTO_AIRPLANE_MODE"

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Lcom/estrongs/android/taskmanager/tools/a;->a(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method

.method private static a(Landroid/content/Context;Ljava/lang/String;Z)Z
    .locals 4

    new-instance v1, Lcom/estrongs/android/taskmanager/tools/b;

    invoke-direct {v1, p0}, Lcom/estrongs/android/taskmanager/tools/b;-><init>(Landroid/content/Context;)V

    invoke-virtual {v1, p1}, Lcom/estrongs/android/taskmanager/tools/b;->a(Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    if-eqz v0, :cond_0

    const/4 v2, 0x1

    invoke-interface {v0}, Landroid/database/Cursor;->getCount()I

    move-result v3

    if-gt v2, v3, :cond_0

    invoke-interface {v0}, Landroid/database/Cursor;->moveToNext()Z

    const-string v2, "1"

    const-string v3, "VALUE"

    invoke-interface {v0, v3}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I

    move-result v3

    invoke-interface {v0, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p2

    :goto_0
    invoke-virtual {v1}, Lcom/estrongs/android/taskmanager/tools/b;->close()V

    return p2

    :cond_0
    if-eqz p2, :cond_1

    const-string v0, "1"

    :goto_1
    invoke-virtual {v1, p1, v0}, Lcom/estrongs/android/taskmanager/tools/b;->a(Ljava/lang/String;Ljava/lang/String;)J

    goto :goto_0

    :cond_1
    const-string v0, "0"

    goto :goto_1
.end method

.method public static b(Landroid/content/Context;)[I
    .locals 5

    const-string v0, "HOME_MENU_ORDER"

    const-string v1, "0,1,2,3,4,5,6,7,8,9,10,11"

    invoke-static {p0, v0, v1}, Lcom/estrongs/android/taskmanager/tools/a;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const-string v1, "ssssss"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "qqqqqqqq get==="

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    const-string v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v1

    array-length v2, v1

    new-array v3, v2, [I

    const/4 v0, 0x0

    :goto_0
    if-lt v0, v2, :cond_0

    return-object v3

    :cond_0
    aget-object v4, v1, v0

    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    aput v4, v3, v0

    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method
